package com.port.eleport.model.biz;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.port.eleport.model.base.IdEntity;
import com.port.eleport.model.plat.TMerchant;

/**
 * 运单
 * 
 * @author jameschen
 * 
 */
@Entity
@Table(name = "biz_way_bill", schema = "")
@DynamicInsert(true)
@DynamicUpdate(true)
public class TWayBill extends IdEntity {

	/**
	 * 订单号
	 */
	@Column(name = "order_no")
	private String orderNo;

	/**
	 * 运单号
	 */
	@Column(name = "logistics_no")
	private String logisticsNo;
	/**
	 * 物流企业名称
	 */
	@Column(name = "logistics_name")
	private String logisticsName;

	/**
	 * 收货人
	 */
	@Column(name = "consignee_")
	private String consignee;

	/**
	 * 省
	 */
	@Column(name = "province_")
	private String province;
	/**
	 * 市
	 */
	@Column(name = "city_")
	private String city;

	/**
	 * 区
	 */
	@Column(name = "district_")
	private String district;

	/**
	 * 收货地址
	 */
	@Column(name = "consignee_addr")
	private String consigneeAddr;

	/**
	 * 收货电话
	 */
	@Column(name = "consignee_tel")
	private String consigneeTel;

	/**
	 * 货物名称
	 */
	@Column(name = "goods_name")
	private String goodsName;

	/**
	 * 交易时调银联接口
	 */
	@Column(name = "create_time")
	private Date createTime;

	/**
	 * 商家
	 */
	@ManyToOne
	@JoinColumn(name = "merchant_id")
	private TMerchant merchant;

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getLogisticsNo() {
		return logisticsNo;
	}

	public void setLogisticsNo(String logisticsNo) {
		this.logisticsNo = logisticsNo;
	}

	public String getLogisticsName() {
		return logisticsName;
	}

	public void setLogisticsName(String logisticsName) {
		this.logisticsName = logisticsName;
	}

	public String getConsignee() {
		return consignee;
	}

	public void setConsignee(String consignee) {
		this.consignee = consignee;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getConsigneeAddr() {
		return consigneeAddr;
	}

	public void setConsigneeAddr(String consigneeAddr) {
		this.consigneeAddr = consigneeAddr;
	}

	public String getConsigneeTel() {
		return consigneeTel;
	}

	public void setConsigneeTel(String consigneeTel) {
		this.consigneeTel = consigneeTel;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public TMerchant getMerchant() {
		return merchant;
	}

	public void setMerchant(TMerchant merchant) {
		this.merchant = merchant;
	}

}
